package com.luobo.shiro.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.luobo.shiro.domain.entity.Role;
import com.luobo.shiro.domain.mapper.RoleMapper;
import com.luobo.shiro.service.IRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RoleServiceImpl implements IRoleService {

    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<Role> getUserRoles(Integer userId) {
        return roleMapper.getUserRoles(userId);
    }
}
